import {GET_DEFAULT_ADDRESS,GET_HANDLE_CONDITION} from "../actions/actionsTypes"

export default function homeReducer(state = {}, action) {
	switch (action.type) {
		case GET_DEFAULT_ADDRESS:
		return Object.assign({}, state, {defaultAddress: action.data});
		case GET_HANDLE_CONDITION:
		return Object.assign({}, state, {condition: action.data});
		default:
			return state;
	}
}
